home *** CD-ROM | disk | FTP | other *** search
- #include <exec/types.h>
- #include <intuition/intuition.h>
- #include <graphics/display.h>
-
- /* make_screen() will open a screen with the supplied characteristics */
-
- make_screen(y,w,h,d,color0,color1,mode,name)
- SHORT y,w,h,d;
- UBYTE color0,color1,*name;
- USHORT mode;
- {
- struct NewScreen ns;
-
- ns.LeftEdge = 0;
- ns.TopEdge = y;
- ns.Width = w;
- ns.Height = h;
- ns.Depth = d;
- ns.DetailPen = color0;
- ns.BlockPen = color1;
- ns.ViewModes = mode;
- ns.Type = CUSTOMSCREEN;
- ns.Font = NULL;
- ns.DefaultTitle = name;
- ns.Gadgets = NULL;
- ns.CustomBitMap = NULL;
-
- return(OpenScreen(&ns));
- }